package com.xjtu.chapter05.ex5_3;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/16 17:13
 */
public class Computer extends Product {
    protected int memory;
    protected String ProcessName;

    public int getMemory() {
        return memory;
    }

    public String getProcessName() {
        return ProcessName;
    }

    @Override
    void ads() {
        System.out.println("This is the best you've ever seen!");
    }

    //实现OnlineShopping的四个方法
    @Override
    public void addtoShoppingCart() {
        System.out.println("Computer:Add");
    }

    @Override
    public void orderItem() {
        System.out.println("Computer:order items");
    }

    @Override
    public void payment() {
        System.out.println("Computer:pay");
    }

    @Override
    public void shipping() {
        System.out.println("Computer:shipping");
    }
}
